package com.ruoyi.paipan.common;

/**
 * @author tiemeng
 * * @date 2024/11/20
 */
public class TaoFestival {
    private String name;
    private String remark;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public TaoFestival(String name, String remark) {
        this.name = name;
        this.remark = remark == null ? "" : remark;
    }

    public TaoFestival(String name) {
        this.name = name;
    }

    public String toFullString()
    {
        StringBuilder s = new StringBuilder();
        s.append(name);
        if(null != remark && remark.length() > 0){
            s.append("[").append(remark).append("]");
        }
        return s.toString();
    }

    @Override
    public String toString() {
        return name;
    }

    public static void main(String[] args) {
        System.out.println(new TaoFestival("aaa","bbb").toFullString());
    }
}
